Auto merge of #3348 - alexcrichton:fix-checksums, r=brson
authorbors <bors@rust-lang.org>
Fri, 2 Dec 2016 14:37:52 +0000 (14:37 +0000)
committerbors <bors@rust-lang.org>
Fri, 2 Dec 2016 14:37:52 +0000 (14:37 +0000)
Fix retrying crate downloads for network errors

Previously the `with_retry` loop was a little too tight where stale state about
the sha256 and data was kept out of the loop. Instead we need to reinitialize
these on each iteration of the loop to ensure that we correctly retry by
forgetting the data we previously downloaded for an aborted download attempt.


Trivial merge